package md.mru.transfer.optimized.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "contracts", schema = "c##mru_optimized")
public class Contract implements Serializable {

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @Column(name = "contract_nr", length = 20)
    private String contractNr;

    @Temporal(TemporalType.DATE)
    @Column(name = "contract_date", length = 7)
    private Date contractDate;

    @Temporal(TemporalType.DATE)
    @Column(name = "valid_to", length = 7)
    private Date toDate;

    @Temporal(TemporalType.DATE)
    @Column(name = "valid_from", length = 7)
    private Date fromDate;

    @Column(name = "trial_period", precision = 10, scale = 0)
    private long trialPeriod;

    @Column(name = "folder", precision = 10, scale = 0)
    private long folder;

    @Column(name = "base", precision = 1, scale = 0)
    private boolean basic;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getContractNr() {
        return contractNr;
    }

    public void setContractNr(String contractNr) {
        this.contractNr = contractNr;
    }

    public Date getContractDate() {
        return contractDate;
    }

    public void setContractDate(Date contractDate) {
        this.contractDate = contractDate;
    }

    public Date getToDate() {
        return toDate;
    }

    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Long getTrialPeriod() {
        return trialPeriod;
    }

    public void setTrialPeriod(Long trialPeriod) {
        this.trialPeriod = trialPeriod;
    }

    public Long getFolder() {
        return folder;
    }

    public void setFolder(Long folder) {
        this.folder = folder;
    }

    public Boolean getBasic() {
        return basic;
    }

    public void setBasic(Boolean bse) {
        this.basic = bse;
    }

}


